package com.hs.gs.ws;

import java.util.List;

import javax.jws.WebService;

import com.hs.gs.domain.EvaluationCategory;
import com.hs.gs.domain.EvaluationItem;

@WebService(endpointInterface="com.hs.gs.ws.EvaluationItemService")
public class EvaluationItemServiceImpl implements EvaluationItemService {

	@Override
	public List<EvaluationItem> getAllEvaluationItemsOfCategory(Long categoryId) {
		EvaluationCategory category = EvaluationCategory.findEvaluationCategory(categoryId);
		return EvaluationItem.findEvaluationItemsByCategory(category).getResultList();
	}

}
